﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;

namespace Hd.Docs.VoloDocs
{
    public class VoloDocsDataSeedContributor : IDataSeedContributor, ITransientDependency
    {

        private readonly IVoloDocsDataSeeder _voloDocsDataSeeder;
        public VoloDocsDataSeedContributor(IVoloDocsDataSeeder voloDocsDataSeeder)
        {
            _voloDocsDataSeeder = voloDocsDataSeeder;
        }

        public async Task SeedAsync(DataSeedContext context)
        {
            await _voloDocsDataSeeder.SeedAsync(context.TenantId);
        }
    }
}
